]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ShellApp: is_on_workspace() should be TRUE for workspaceless apps
authorDan Winship <danw@gnome.org>
Fri, 17 Dec 2010 20:01:19 +0000 (15:01 -0500)
committerDan Winship <danw@gnome.org>
Thu, 13 Jan 2011 17:16:38 +0000 (12:16 -0500)
If a starting-up app has not requested a particular workspace, then
shell_app_is_on_workspace() should return TRUE for any workspace.

Otherwise we will never get startup notification for them, since the
app menu only shows apps that are starting on the current workspace.

https://bugzilla.gnome.org/show_bug.cgi?id=635089

src/shell-app.c

index fae61c4d4a00c5677a7eae15d6fa10c335f3cb30..0f733a4294942efeda228a2cf1f168b48510a30b 100644 (file)
@@ -577,7 +577,8 @@ shell_app_is_on_workspace (ShellApp *app,
 
   if (shell_app_get_state (app) == SHELL_APP_STATE_STARTING)
     {
-      if (meta_workspace_index (workspace) == app->started_on_workspace)
+      if (app->started_on_workspace == -1 ||
+          meta_workspace_index (workspace) == app->started_on_workspace)
         return TRUE;
       else
         return FALSE;